<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/pages/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>业务编辑界面</title>
<s:include value="/WEB-INF/pages/common/reference.jsp" />
<bees:editor-import />
</head>
<body>
	<center>
		<div id="container">
			<form action="${fun:url('/backstage/furnish/business','edit','modify','') }">
				<s:hidden name="domain.id" value="%{#request.domain.id}" />
				<bees:editor style="width:100%;height:auto;"
					rows="[
						{name:'业务名称',height:'30px',editer:{
								type:'text',
								name:'domain.name',
								property:'name',
								placeholder:'请输入业务的名称',
								size:'30',
								validator:{rule:{required:true,maxlength:20},message:{required:'不能为空',maxlength:'长度不能大于20'}}
							}
						},
						{name:'所属类别',height:'30px',editer:{
								type:'select',
								name:'domain.kind.id',
								property:'kind.id',
								placeholder:'所属类别',
								size:'30',
								url:'${fun:url('/backstage/furnish/kind','paging','','') }'
							}
						},
						{name:'成本价',height:'30px',editer:{
								type:'text',
								name:'domain.cost',
								property:'cost',
								placeholder:'请输入产品的成本价',
								size:'30',
								validator:{rule:{digits:true,maxlength:10},message:{digits:'请输入数字',maxlength:'长度不能大于10'}}
							}
						},
						{name:'市场价',height:'30px',editer:{
								type:'text',
								name:'domain.market',
								property:'market',
								placeholder:'请输入产品的市场价',
								size:'30',
								validator:{rule:{digits:true,maxlength:10},message:{digits:'请输入数字',maxlength:'长度不能大于10'}}
							}
						},
						{name:'售价',height:'30px',editer:{
								type:'text',
								name:'domain.price',
								property:'price',
								placeholder:'请输入产品的售价',
								size:'30',
								validator:{rule:{digits:true,maxlength:10},message:{digits:'请输入数字',maxlength:'长度不能大于10'}}
							}
						},
						{name:'服务范围',height:'30px',editer:{
								type:'text',
								name:'domain.region',
								property:'region',
								placeholder:'请输入服务的范围',
								size:'30',
								validator:{rule:{maxlength:20},message:{maxlength:'长度不能大于20'}}
							}
						},
						{name:'服务时段',height:'30px',editer:{
								type:'text',
								name:'domain.period',
								property:'period',
								placeholder:'请输入服务的时段',
								size:'30',
								validator:{rule:{maxlength:20},message:{maxlength:'长度不能大于20'}}
							}
						},
						{name:'服务时长',height:'30px',editer:{
								type:'text',
								name:'domain.duration',
								property:'duration',
								placeholder:'请输入服务的时长',
								size:'30',
								validator:{rule:{maxlength:20},message:{maxlength:'长度不能大于20'}}
							}
						},
						{name:'等级',height:'30px',editer:{
								type:'text',
								name:'domain.grade',
								property:'grade',
								placeholder:'请输入服务的等级',
								size:'30',
								validator:{rule:{maxlength:10},message:{maxlength:'长度不能大于10'}}
							}
						},
						{name:'计量单位',height:'30px',editer:{
								type:'select',
								name:'domain.unit.id',
								property:'unit.id',
								placeholder:'请选择该产品的计量单位',
								size:'30',
								url:'${fun:url('/backstage/furnish/unit','paging','','') }'
							}
						},
						{name:'备注',height:'120px',editer:{
								type:'textarea',
								name:'domain.description',
								property:'description',
								style:'resize:none;',
								placeholder:'请输入备注',
								cols:'50',
								rows:'5'
							}
						}
					]"
					domain="${domain }" />
			</form>
		</div>
	</center>
</body>
</html>